ARRAYS Continue

OPENING QUESTION:

[Blue & Orange], [Red & Green] folks work together and

Please find a partner and quiz each other on the following terms:

    • array
    • list
    • element
    • iterate
    • item

OBJECTIVES: 

Rookies: I will write code to iterate through an array during today's class.

Senseis: I will choose an advanced array topic during today's class

CALENDAR:

HELP FILES: I redid (?) the help video for using the APP Lab debugger, it is on our class slide deck and also HERE

WORK O' THE DAY

We'll take a look at my efforts to comment through yesterday's bug-filled program in just a moment.

You may have noticed that I spent a LOT of time roaming around the class yesterday and I noted that very few of us were using the debugger. I'll remind ya'all the tutorial for using the debugger is still on the lesson plan.

Learning how to use that will make your life LOTS easier (*hint* *hint*)

With that in mind, please take 5 - 10 minutes looking at my example of how commenting can be such a HUGE help in debugging someone else's work.

My first pass is HERE

I implemented a few changes HERE

═══════════════════════════

Please create a new app that:

Asks your user to enter a character (letter, number, other item from the keyboard)

Adds that character to an array

After 20 characters are added iterate through the array and display each element in the console log.

For a bit of a challenge take all of the characters in the array and display them, separated by commas, in a label